import request from '@/utils/request'

// 查询展示首页列表
export function listTIndex(query) {
  return request({
    url: '/business/tIndex/list',
    method: 'get',
    params: query
  })
}

// 查询展示首页详细
export function getTIndex(indexId) {
  return request({
    url: '/business/tIndex/' + indexId,
    method: 'get'
  })
}

// 新增展示首页
export function addTIndex(data) {
  return request({
    url: '/business/tIndex',
    method: 'post',
    data: data
  })
}

// 修改展示首页
export function updateTIndex(data) {
  return request({
    url: '/business/tIndex',
    method: 'put',
    data: data
  })
}

// 删除展示首页
export function delTIndex(indexId) {
  return request({
    url: '/business/tIndex/' + indexId,
    method: 'delete'
  })
}
